package com.xinghanlaser.applet.vo.applet;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.xinghanlaser.applet.base.common.annotation.PhoneValidated;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;


/**
 * <p>
 *
 * <p>
 *
 * @author: mftuo 陀铭峰
 * @since: 2024/5/7 14:10
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class RegisterOrLoginVO {
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty("手机号，在数据库中代表userName")
    @PhoneValidated(message = "手机号格式不正确")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty("验证码")
    private String code;
}
